'Declaration Public Overloads Function Validate( _ ByVal component As Object, _ ByVal validateHidden As Boolean, _ ByVal ParamArray ignoredComponents() As Object _ ) As Boolean
'Usage Dim instance As ValidationProvider Dim component As Object Dim validateHidden As Boolean Dim ignoredComponents() As Object Dim value As Boolean value = instance.Validate(component, validateHidden, ignoredComponents)
public bool Validate( object component, bool validateHidden, params object[] ignoredComponents )
Parameters
- component
- The component to validate.
- validateHidden
- true if validation includes hidden components. false will validate only visible components.
Components are considered to be visible even if they are not currently within the client area of their container. Hidden components are components that are collapsed or whose Visible property is set to false. - ignoredComponents
- An array containing types of components and/or specific component instances to be ignored, along with their children components. When a a null reference (Nothing in Visual Basic) is passed, validation will occur on all component types.
Return Value
Returns true if components are valid; false otherwise.